package com.auto.admin.service.impl;

import com.auto.admin.entity.ModuleCategory;
import com.auto.admin.mapper.ModuleCategoryMapper;
import com.auto.admin.service.ModuleCategoryService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import java.util.List;
import org.springframework.stereotype.Service;

/**
 * Description: 项目模块分类 服务实现类
 * @author liangshf
 * @date 2021-11-26
 */
@Service
public class ModuleCategoryServiceImpl extends ServiceImpl<ModuleCategoryMapper, ModuleCategory> implements
	ModuleCategoryService {

	@Override
	public List<ModuleCategory> findByModuleId(Long moduleId) {
		QueryWrapper<ModuleCategory> paramWrapper = new QueryWrapper<>();
		paramWrapper.eq("module_id", moduleId);
		return baseMapper.selectList(paramWrapper);
	}
}
